package com.xh.bussiness.tiku.service;

import com.xh.bussiness.tiku.bean.dto.ImportQuestionResultDto;
import com.xh.bussiness.tiku.bean.dto.QuestionDto;
import com.xh.bussiness.tiku.bean.request.QuestionImportLogRequest;
import com.xh.bussiness.tiku.model.QuestionImportLog;
import com.xh.core.bean.XhPage;
import com.xh.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 试题导入记录表 服务类
 * </p>
 *
 * @author daiwei
 * @since 2019-07-05
 */
public interface IQuestionImportLogService extends IBaseService<QuestionImportLog> {

    /**
     * 分页查询方法
     *
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryQuestionImportLogPage(XhPage page, QuestionImportLogRequest bean);

    /**
     * 查询方法
     *
     * @param bean
     * @return
     */
    public List queryQuestionImportLog(QuestionImportLogRequest bean);

    Map<String, Object> queryQuestionByImportId(String importId);

    /**
     * 引用相似试题到导入记录
     * @param importId
     * @param quoteQuestionId
     * @param importQuestionId
     * @return
     */
    QuestionDto quoteQuestionToImportLog(String importId, String quoteQuestionId, String importQuestionId);

    void removeLogPaperByPaperId(String paperId);

    /**
     * 根据试卷id获取试题（批量录题学科网）
     * @author 赵文博
     * @date 2021/6/2 15:14
     * @param paperId
     * @return java.util.Map<java.lang.String,java.lang.Object>
     **/
    Map<String, Object> queryQuestionByPaperId(String paperId);
}
